package cn.ggcms.cms.biz;

import java.util.List;

import cn.ggcms.cms.dao.InfoDao;
import cn.ggcms.cms.vo.Info;

public class InfoBiz implements InfoDao {

	private InfoDao infoDao ;
	public InfoBiz(){}
	public InfoBiz(InfoDao infoDao){
		this.infoDao = infoDao;
	}
	public void doDeleteInfoById(int id) {

		this.infoDao.doDeleteInfoById(id);
		
	}

	public int doSaveInfo(Info info) {
		return this.infoDao.doSaveInfo(info);
	}

	public void doUpdateInfo(Info info) {
		this.infoDao.doUpdateInfo(info);
	}

	public Info findInfoById(int id) {
		return this.infoDao.findInfoById(id);
	}

	public List<Info> findInfos() {
		return this.infoDao.findInfos();
	}

}
